# Written by Mochan Shrestha
# Makefile tested under Red Hat Linux. Please make appropriate adjustments
# for your OpenGL libraries and OS

OBJS = color.o main.o normal.o octahedron.o point.o polyhedra.o tetrahedron.o stdafx.o
OBJS2 = cube.o
XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM
-lICE LIBS = -lglut -lMesaGLU -lMesaGL -lm $(XLIBS)

all	:	$(OBJS) $(OBJS2)
		gcc $(OBJS) $(OBJS2) $(LIBS) -o serglut

color.o	:	color.cpp color.h
		gcc -c color.cpp

main.o	:	main.cpp
		gcc -c main.cpp

normal.o:	normal.cpp
		gcc -c normal.cpp

octahedron.o:	octahedron.cpp
		gcc -c octahedron.cpp

point.o	:	point.cpp
		gcc -c point.cpp

polyhedra.o:	polyhedra.cpp
		gcc -c polyhedra.cpp

tetrahedron.o:	tetrahedron.cpp
		gcc -c tetrahedron.cpp

cube.o:		cube.cpp
		gcc -c cube.cpp

stdafx.o:	stdafx.cpp
		gcc -c stdafx.cpp
